/************************************************************************/
// Copyright (C) 2016, han_gangbiao. All rights reserved.
// Use of this source code is governed by a GPL-v2 license that can be found in the License file.
// 
// [Time]:      2016-1-4 21:53:17
// [Author]:    han_gangbiao [http://my.oschina.net/jackhen]
// [Info]:      
/************************************************************************/

#ifndef INCLUDE_NET_NETBASEDEFINE_H_
#define INCLUDE_NET_NETBASEDEFINE_H_


#include "base/baseheader.h"

typedef int SOCK_FD;
const SOCK_FD INVALID_SOCKET_FD = -1;

typedef enum
{
	NET_ERR_NONE = 0,
	NET_ERR_USER_CLOSED = -1,
	NET_ERR_PEER_CLOSED = -2,
	NET_ERR_LOCAL_WRONG = -3,
	NET_ERR_SEND_CLOSING = -4,
	NET_ERR_RECV_CLOSING = -5,
}NetErrorCode_t;

#endif //~INCLUDE_NET_NETBASEDEFINE_H_


